<?php


namespace app\model\cart;


use app\model\user\UserModel;
use think\Model;

class VerifyCartComplaintModel extends Model
{
    protected $name = 'verify_cart_complaint';
    protected $autoWriteTimestamp = true;

    protected $json = ['img'];
    protected $jsonAssoc = true;

    public function user()
    {
        return $this->hasOne(UserModel::class, 'id', 'user_id')->bind([
            'user_name' => 'username',
            'user_avatar' => 'avatar'
        ]);
    }
}